<?

$_ID = $this->getId();

if($this->loadDefaultCSS){
    echo CHtml::css("
    div.miniprofile{$_ID}{  }
    table.miniprofile{$_ID}-login{ margin: 5px; }
    table.miniprofile{$_ID}-login  td{ padding: 2px; }
    ");
}
echo $form;
?>
<!--
<?php $form=$this->beginWidget('CActiveForm', array(
    'action'=>$this->createUrl('/user/login'),
    'id'=>'login-form',
    'enableAjaxValidation'=>false,
    'htmlOptions' => array(
        'class' => $this->formClass,
        'onkeypress'=>'onEnterSendForm(event, this)'
    )
)); ?>

<div class="miniprofile<?=$_ID?> <?=$this->formDivClass?>">

    <div class="row">
        <?=$form->labelEx($_FORM,'email'); ?>
        <?=$form->textField($_FORM,'email',array('tabindex'=>1)); ?>
        <?=$form->error($_FORM,'email'); ?>
    </div>
    
    <div class="row">
        <?=$form->labelEx($_FORM,'password'); ?>
        <?=$form->passwordField($_FORM,'password',array('tabindex'=>2)); ?>
        <?=$form->error($_FORM,'password'); ?>
    </div>
    
    <?if($_FORM->isShowAntiSpanCaptcha()){?>
    <div class="row">
        <?=$form->labelEx($_FORM,'verifyCode'); ?>
        <?=$form->textField($_FORM,'verifyCode',array('tabindex'=>3)); ?>
        <?=$form->error($_FORM,'verifyCode'); ?>
    </div>
    <div class="row">
        <?php $this->widget('CCaptcha', array(
            'captchaAction'=>'/site/captcha',
            'showRefreshButton'=>false,
            'clickableImage'=>true,
            'imageOptions' => array(
                'title' => UserModule::t('app', 'Click to reload captcha')
            )
        ));?>
    </div>
    <?}?>
    
    <div class="row">
        <?=$form->checkBox($_FORM,'rememberMe')?> <?=$form->label($_FORM,'rememberMe'); ?>
    </div>
    
    <div class="row">
        <?=CHtml::submitButton(UserModule::t('app', 'Войти'),array('tabindex'=>4)); ?>
    </div>
    
    <div class="row">
        <a href="<?=UserModule::url('/user/forgotpass', array(), true)?>"><?=UserModule::t('app', 'Забыли пароль?')?>?</a><br />
        <a href="<?=UserModule::url('/user/registration', array(), true)?>"><?=UserModule::t('app', 'Регистрация')?></a>
    </div>
</div>
<?php $this->endWidget(); ?>-->
